//
//  showDetailsView.h
//  ProjectforHDX
//
//  Created by HDX on 16/7/27.
//  Copyright © 2016年 H.DX. All rights reserved.
//消息通知提醒弹窗

#import <UIKit/UIKit.h>

typedef void(^showDetailsViewBlock)(NSInteger index ,id responseObject);


typedef NS_ENUM(NSInteger,UIShowDetailsType) {
    NSShowDetailsDefault=0,
 
};
@interface showDetailsView : UIView


/**
*  绘制公共展框
*
*  @param contentType 类别
*  @param img     头图标
*  @param title   标题
*  @param color   头部颜色
*  @param content 内容   字符串/字典数组 eg   @[@{@"key":@"id",@"placeholder":@"文本",@"type":@"0/1"}]; 0输入 1选择
*  @param success 点击回调
*  @param btndict 按钮初始化 @[@"",@""]
*
*  @return
*/
-(id)initWithFrameContentType:(UIShowDetailsType)type  headImage:(UIImage*)img headTitle:(NSString*)title headColor:(UIColor*)color text:(id)content click:(showDetailsViewBlock)success  bottons:(NSArray*)btns ;


/**
 *  发货信息确认
 *
 *  @param img           头图标
 *  @param title    标题
 *  @param subTitle 收货联系人
 *  @param addr     收货地址
 *  @param color    头部颜色
 *  @param array    内容数组 @[@{@"name":@"EWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSA",@"code":@"C11693",@"count":@"1"}]
 *  @param success  按钮点击回调
 *  @param btns     按钮
 *
 *  @return
 */
-(id)initWithHeadImage:(UIImage*)img headTitle:(NSString*)title contacts:(NSString*)subTitle address:(NSString*)addr headColor:(UIColor*)color text:(id)array click:(showDetailsViewBlock)success  bottons:(NSArray*)btns ;


/**
 *  确认故障件信息
 *
 *  @param img           头图标
 *  @param title    标题
 *  @param subTitle 副标题
 *  @param color    头部颜色
 *  @param array    内容数组   二维数组 self.content=@[@[@{@"name":@"EWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"}],@[@{@"name":@"EWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSAEWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"},@{@"name":@"EWSA",@"code":@"C11693",@"count":@"1"}]];
 
 *  @param success  按钮点击回调
 *  @param btns     按钮
 *
 *  @return
 */
-(id)initWithHeadImage:(UIImage*)img headTitle:(NSString*)title subTitle:(NSString*)subTitle  headColor:(UIColor*)color text:(NSArray*)array    click:(showDetailsViewBlock)success  bottons:(NSArray*)btns ;


@end
